package com.dfl.gankio.ui.main

import android.app.Application
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.dfl.gankio.base.BaseViewModel
import com.dfl.gankio.bean.BannerBean
import com.dfl.gankio.net.ApiServices
import com.dfl.gankio.net.BaseResult
import com.dfl.gankio.net.HttpManger

class MainViewModel() : BaseViewModel() {
    fun getNewData(): LiveData<BaseResult<List<BannerBean>>> {
        return HttpManger.instance
            .create(ApiServices::class.java)
            .getBanner()
    }
}
